from lxml import etree
if __name__ == '__main__':
    parser = etree.HTMLParser(encoding="utf-8")
    tree = etree.parse('qiutu.html',parser=parser)
    r = tree.xpath('//div[@class="index-side-left-AD1"]//@src')[0]
    print(r)